import React from "react"
import { withRouter } from 'react-router'

class Router0501 extends React.Component {
    constructor(props) {
        super(props);
        console.log(this.props)
    }
    render() {
        return (
            <div>
                <p>
                    组建未用 Route标签 渲染时  props 获取不到数据
          </p>
                <p>
                    使用withRouter(Router0501) 方法 可以加入路由
                </p>
            </div>


        )
    }

}
export default withRouter(Router0501) 